#ifndef TIME
#define TIME
#include <iostream>
using namespace std;


class Time
{
	char ampm;
	unsigned int hour;
	unsigned int minute;
	unsigned int millTime;

public:
	Time(void);
	~Time(void);
	void Set(unsigned int hours, unsigned int minutes, char ampm);
	void Display(ostream & out) const;
	void Advance(unsigned int hours, unsigned int minutes);
	friend ostream& operator<<(ostream& out, const Time& t);
	bool operator<(const Time& other) const;
	bool operator>(const Time& other) const;
	bool operator==(const Time& other) const;
	unsigned int Hour() const;
	unsigned int Minute() const;
	unsigned int MilTime() const;
	static int ToMillTime(unsigned hour, unsigned minute, char ampm);
	void ToStandarTime(unsigned int milTime);
};

inline Time::Time(){
	hour = 12;
	minute= 0;
	ampm= 'A';
	millTime=Time::ToMillTime(hour,minute,ampm);
}


#endif


